<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<% String basepath = request.getContextPath(); %>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="<%=basepath%>/css/nomal.css" rel="stylesheet" type="text/css" />
		<script src="js/jquery-1.4.4.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript" src="<%=basepath%>/js/validatorTool.js"></script>
		<script language="javascript" type="text/javascript" src="<%=basepath%>/calendar/WdatePicker.js"></script>
		<script language="JavaScript" type="text/javascript" src="<%=basepath%>/js/caltimer.js"></script>
<style type="text/css">
.mycolor {
	color: #FF0000;
}
</style>
<script type="text/javascript">
		
	jQuery(document).ready(
		function(){
			//供应商类型
			initselect("suptype",'${currentInfo.suptype}');
			//企业性质
			//initselect("entproperty",'${currentInfo.entproperty}');
			//初始化两个字段：所属行业，经济类型
			//initmodel("industryname,ectypename","${currentInfo.industry}"+","+"${currentInfo.ectype}");
			initmodel("ectypename","${currentInfo.ectype}");
		}
	)
	
	//初始化参考数据的名称
	function initmodel(name,pk){
		jQuery.ajax({
				type: "GET", 
	            async:false,
	            url:"<%=basepath%>/register/initmodel?pk="+pk, 
	            dataType:"text", 
	            success:function(result){   
	                if(result !=''){
	                	var items = result.split("|");
	                	var nameitem = name.split(",");
	                	for(var i=0;i<nameitem.length;i++){
	                		if(i<items.length){
	                			document.getElementById(nameitem[i]).value = items[i];
	                		}
	                	}
	                }
	            } 
	        }
		)
	}
	//这里进行提交
	function nextStep() {
		document.forms[0].action = "<%=basepath %>/selfinfo/editNextStep?nextStep=2&readOnly=readOnly";
		document.forms[0].submit();
	}
 
</script>
</head>
	<body class="fullbody">
		<form method="post" >
				<div class="context">
					<div class="position">
						<div class="tposi">
							当前位置：
							<a href="javascript:changeMenu(1,'<%=request.getContextPath()%>/infopub/pubmain?menuid=1'); class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
							<a href="javascript:changeMenu(4,'')" class="linkstyle">自助服务</a>&nbsp;&gt;&gt;&nbsp;
							<span class="curposition">企业信息维护</span>
						</div>
						<div class="help">
							<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/QYXXXG.html');" class="linkstyle">帮助</a>
						</div>
					</div>
					<div class="margin8"> </div>
					<div class="subpage_title">
						<div class="title_index">
							<img src="<%=basepath%>/images/common/dot03.gif" alt="" border="0" /> &nbsp;企业信息维护
						</div>
						<div class="rollback">
							<a href="javascript:changeMenu(4,'')" class="linkstyle">&lt;&lt;&nbsp;返回自助服务</a>
						</div>
					</div>
					<div class="margin10"></div>
					<div class="orginfo">
						<div class="spliter_line"> </div>
						<div class="margin10"> </div>
						<div class="message">
                            <img src="<%=basepath%>/images/account/msg.png" alt="" />&nbsp;信息修改正在审核，请等待审核后修改！
                        </div>
						<div class="margin10"> </div>
						<div class="lineconner1" >
							<div class="left1"> <img src="<%=basepath%>/images/conner/a_01.png" alt="" /> </div>
							<div class="right1"> <img src="<%=basepath%>/images/conner/b_01.png" alt="" /> </div>
							<div class="c_context" >
								<table cellpadding="0" cellspacing="0" border="0" width="700">
									<tr class="title">
										<td colspan="4"> </td>
									</tr>
									<tr class="inputrow">
										<td class="ww">供应商全称<br/>(与营业执照一致)：</td>
										<td class="w5">
											<input type="hidden" name="pk_supinfocheck_h"
												value="${currentInfo.pk_supinfocheck_h}" />
											<input type="text" name="supname" class="textstyle"
												value="${currentInfo.supname}" readOnly/>
											<span class="needfill">*</span>
										</td>
										<td class="ww">英文全称：</td>
										<td class="w5">
											<input type="text" name="supenname" class="textstyle"
												value="${currentInfo.supenname}" readOnly/>
										</td>
									</tr>
									<tr class="inputrow">
										<td class="ww">供应商类型：</td>
										<td class="w5">
											<select name="suptype" id="suptype" class="textstyle"  disabled="disabled">
												<option value="0">外部单位</option>
												<option value="1">内部单位</option>
											</select>
										</td>
										<td class="ww">银行资信等级：</td>
										<td class="w5">
											<select name="bankcreditrank" id="bankcreditrank" class="textstyle" disabled="disabled">
												<option value="0"></option>
												<option value="3"
												<c:if test="${currentInfo.bankcreditrank == '3'}">{
													selected
												}												
												</c:if>>3A</option>
												<option value="2"
												<c:if test="${currentInfo.bankcreditrank == '2'}">{
													selected
												}												
												</c:if>>2A</option>
												<option value="1"
												<c:if test="${currentInfo.bankcreditrank == '1'}">{
													selected
												}												
												</c:if>>A</option>
											</select>
										</td>
									</tr>
									<tr class="inputrow">
										<td class="ww">纳税人登记号：</td>
										<td class="w5">
											<input type="text" name="taxpayerid"
												value="${currentInfo.taxpayerid}" class="textstyle" readOnly/>
											<span class="needfill">*</span>
										</td>
										<td class="ww">法人：</td>
										<td class="w5">
											<input type="text" name="legalbody"
												value="${currentInfo.legalbody}" class="textstyle" readOnly/>
											<span class="needfill">*</span>
										</td>
									</tr>
									<tr class="inputrow">
										<td class="ww">营业执照号：</td>
										<td class="w5">
											<input type="text" name="salelicenceno"
												value="${currentInfo.salelicenceno}" class="textstyle" readOnly/>
											<span class="needfill">*</span>
										</td>
										<td class="ww">成立日期：</td>
										<td class="w5">
											<input type="text"  name="builddate"
												value="${currentInfo.builddate}" id="builddate"
												  readOnly class="textstyle" />
											<span class="needfill">*</span>
										</td>
									</tr>
									<tr class="inputrow">
										<td class="ww">注册资本：</td>
										<td class="w5">
											<input type="text" name="regfound"
												value="${currentInfo.regfound}" class="textstyle" readOnly/>
											<span class="needfill">*</span>
										</td>
										<td class="ww">经济类型：</td>
										<td class="w5">
											<input type="text" name="ectypename" id="ectypename"
												 class="textstyle"  readOnly/>
											<span class="needfill">*</span>
											<input type="hidden" name="ectype" id="ectype"
												value="${currentInfo.ectype}" class="textstyle"  readOnly/>
										</td>
									</tr>
									<tr>
										<td colspan="4">&nbsp;</td>
									</tr>
									<tr class="buttonrow">
										<td align="right" colspan="4">
											<input type="button" value="下一步" onclick="nextStep();" class="btnscs" />
										</td>
									</tr>
								</table>

							</div>
							 
						</div>
						<div>
						</div>
						<div class="margin20">
							<div id="message" class="mycolor">
								<c:out value="${ERROR_MESSAGE}"></c:out>
							</div>
						</div>
					</div>
					<div class="margin20">
					</div>
				</div>
				<div class="margin10">
				</div>
		</form>
	</body>